package com.xu.chapter02;

/**
 *
 * @author xudenghui
 * @create 2023-06-16 11:04
 **/
public class Finery extends Person{

    protected  Person component;

    public void  decorate(Person component) {
        this.component = component;
    }

    @Override
    public void show() {
        if (component != null){
            component.show();
        }
    }
}
